import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { B1Component } from './b-1/b-1.component';
import { B2Component } from './b-2/b-2.component';
import {RouterModule, Routes} from '@angular/router';
export const bRoutes: Routes = [
  {
    path: '',
    children: [
      {path: 'b-1', component: B1Component},
      {path: 'b-2', component: B2Component}
    ]
  }
];
@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(bRoutes)
  ],
  declarations: [B1Component, B2Component]
})
export class BModule { }
